Skip to content

feat: use Table in devtron, argo & flux listings#996

Merged
whoami-amrit merged 15 commits into
developfrom
feat/app-list-table
Jan 20, 2026
Merged

feat: use Table in devtron, argo & flux listings#996
whoami-amrit merged 15 commits into
developfrom
feat/app-list-table

Conversation

@whoami-amrit

@whoami-amrit whoami-amrit commented Jan 5, 2026

Copy link
Copy Markdown
Contributor

Added support for expandable rows in table. Taking in the expanded row data from user in RowType itself.

The expanded rows are like ordinary rows itself. To custom style these differently than normal cells, we can use the isExpandedRow field in CellComponent props. Similarly if we want to style the row that expands we can use the isRowInExpandedState prop of CellComponent

Copilot AI review requested due to automatic review settings January 5, 2026 16:51

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds expandable rows functionality to the generic table component, allowing rows to have nested child rows that can be expanded or collapsed on demand.

Key Changes:

  • Type definitions extended to support expandable and expanded row types with ID constraints
  • State management for tracking which rows are expanded
  • Toggle functionality for individual rows and "expand/collapse all" feature

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 11 comments.

File Description
src/Shared/Components/Table/types.ts Refactored row types to support expandable rows with new ExpandedRowType and modified RowType to include optional expandableRows array; added isExpandedRow and isRowInExpandState props to CellComponentProps
src/Shared/Components/Table/styles.scss Added styling for expanded rows with distinct background color and an unused __expanse class
src/Shared/Components/Table/TableContent.tsx Implemented expand/collapse logic with state management, rendering of expand buttons, filtering visible rows to include expanded children, and grid template adjustments for expand column

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/Shared/Components/Table/TableContent.tsx Outdated
Comment thread src/Shared/Components/Table/TableContent.tsx
Comment thread src/Shared/Components/Table/TableContent.tsx Outdated
Comment thread src/Shared/Components/Table/TableContent.tsx Outdated
Comment thread src/Shared/Components/Table/styles.scss
Comment thread src/Shared/Components/Table/TableContent.tsx Outdated
Comment thread src/Shared/Components/Table/TableContent.tsx Outdated
Comment thread src/Shared/Components/Table/TableContent.tsx Outdated
Comment thread src/Shared/Components/Table/TableContent.tsx Outdated
Comment thread src/Shared/Components/Table/TableContent.tsx Outdated
Comment thread src/Shared/Components/Table/styles.scss Outdated
Comment thread src/Shared/Components/Table/types.ts
AbhishekA1509
AbhishekA1509 previously approved these changes Jan 13, 2026
@whoami-amrit whoami-amrit changed the title feat: add expandable rows support in table feat: use Table in devtron, argo & flux listings Jan 19, 2026
vivek-devtron
vivek-devtron previously approved these changes Jan 20, 2026
@whoami-amrit whoami-amrit merged commit 19aed84 into develop Jan 20, 2026
7 checks passed
@whoami-amrit whoami-amrit deleted the feat/app-list-table branch January 20, 2026 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants